/**
 * 环境配置
 */
const env = import.meta.env.MODE || 'production'
const EnvConfig = {
  development: {
    // baseURL: 'dev/',
    baseURL: '/',
    mockURL: 'http://10.1.6.22:4523/mock/953621',
    token: 'eyJhbGciOiJSUzI1NiJ9.eyJzY2hlbWEiOiJkYl9jeWJlcndhdGVyX3RlbmFudF9td3kwMDFfMTEyOSIsInN1YiI6Inp6ejAwMSIsImx0ZG5vIjoyMTQsImxvZ2luX3R5cGUiOiJQQyIsInRlbmFudElkIjoxMTI5LCJkZWZhdWx0X2x0ZG5vIjoyMTQsImV4cCI6MTY1MjQyMDU2NywidXNlcklkIjo3NzgwMjIsImlhdCI6MTY1MjM0ODU2NywidXNlcm5hbWUiOiJ6enowMDEifQ.esFrUacuLwKiF4WNy6ANf8z3NPN1yFsDwLg_NVSruv5yuLCseQatXX1I0n4xbBOgabR1tZTcmmKrL_fZfpM0c1uvCzw0AvToiJxFMt9CH0KrUWMmrJPYJmuPPQAh28XAAw3LPR4X_F5Zquh7MCyRKEwtNTNsSc1N2XXTQSiFYT4',
  },
  production: { baseURL: '/', mockURL: '' },
  // TODO: 环境变量配置  npm run dev:demo
  demo: {
    baseURL: 'demo/',
    mockURL: 'https://www.fastmock.site/mock/9da1714eafcdf5299a71ab754db3839b/api',
  },
}

export default {
  env,
  mock: false, // 当前接口是否支持mock
  ...EnvConfig[env],
}
